package cn.lx;

import java.io.IOException;


/**
* @Author: 落雪
* @Date: 2025/3/13 22:51
* @Description: 登录服务
* @Return: null
* @Version: 1.0.0
*/
public interface ILoginService {


    /**
    * @Author: 落雪
    * @Date: 2025/3/14 09:24
    * @Description: 创建Ticket和二维码
    * @param
    * @Return: java.lang.String
    * @Version: 1.0.0
    */
    String createQrCodeTicket() throws Exception;

    /**
    * @Author: 落雪
    * @Date: 2025/3/14 09:24
    * @Description: 检查登录信息
    * @param ticket
    * @Return: java.lang.String
    * @Version: 1.0.0
    */
    String checkLogin(String ticket);

    /**
    * @Author: 落雪
    * @Date: 2025/3/14 09:24
    * @Description: 保存登录状态并发送模版信息
    * @param ticket
    * @param openid
    * @Return:
    * @Version: 1.0.0
    */

    void saveLoginState(String ticket, String openid) throws IOException;
}
